package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_ACCOUNTBOOKID;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_AGREEMENT_NO;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_ARRIVAL_TIME_END;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_ERROR_CODE;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_FAIL_REASON;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_IDENTITY;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_IDENTITY_TYPE;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_NAME;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_ORDER_FEE;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_ORDER_ID;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_ORDER_TITLE;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_PAY_DATE;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_PAY_FUND_ORDER_ID;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_REMARK;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_SAFETY_BATCH_ID;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_STATUS;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_TRANS_AMOUNT;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.E_TRANS_AMOUNT_ALL;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_ACCOUNTBOOKID_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_AGREEMENT_NO_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_ARRIVAL_TIME_END_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_ERROR_CODE_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_FAIL_REASON_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_IDENTITY_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_IDENTITY_TYPE_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_NAME_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_ORDER_FEE_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_ORDER_ID_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_ORDER_TITLE_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_PAY_DATE_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_PAY_FUND_ORDER_ID_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_REMARK_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_SAFETY_BATCH_ID_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_STATUS_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.M_TRANS_AMOUNT_ALL_MAX;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_ACCOUNTBOOKID;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_AGREEMENT_NO;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_ARRIVAL_TIME_END;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_ERROR_CODE;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_FAIL_REASON;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_IDENTITY;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_IDENTITY_TYPE;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_NAME;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_ORDER_FEE;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_ORDER_ID;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_ORDER_TITLE;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_PAY_DATE;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_PAY_FUND_ORDER_ID;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_REMARK;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_SAFETY_BATCH_ID;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_STATUS;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_TRANS_AMOUNT;
import static org.jsola.hr.example.TransferAccountsZfbSafetyDetailExample.N_TRANS_AMOUNT_ALL;

/**
 * 安全发转账明细(支付宝)
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【安全发转账明细(支付宝)】的参数")
@Data
public class TransferAccountsZfbSafetyDetailUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_TRANS_AMOUNT_ALL, example = E_TRANS_AMOUNT_ALL)
    @Length(max = 16, message = M_TRANS_AMOUNT_ALL_MAX)
    private String transAmountAll;

    @ApiModelProperty(notes = N_ACCOUNTBOOKID, example = E_ACCOUNTBOOKID)
    @Length(max = 64, message = M_ACCOUNTBOOKID_MAX)
    private String accountBookId;

    @ApiModelProperty(notes = N_AGREEMENT_NO, example = E_AGREEMENT_NO)
    @Length(max = 256, message = M_AGREEMENT_NO_MAX)
    private String agreementNo;

    @ApiModelProperty(notes = N_ORDER_TITLE, example = E_ORDER_TITLE)
    @Length(max = 32, message = M_ORDER_TITLE_MAX)
    private String orderTitle;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 32, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_IDENTITY_TYPE, example = E_IDENTITY_TYPE)
    @Length(max = 64, message = M_IDENTITY_TYPE_MAX)
    private String identityType;

    @ApiModelProperty(notes = N_IDENTITY, example = E_IDENTITY)
    @Length(max = 64, message = M_IDENTITY_MAX)
    private String identity;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    @Length(max = 256, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_SAFETY_BATCH_ID, example = E_SAFETY_BATCH_ID)
    @Length(max = 32, message = M_SAFETY_BATCH_ID_MAX)
    private String safetyBatchId;

    @ApiModelProperty(notes = N_ORDER_ID, example = E_ORDER_ID)
    @Length(max = 32, message = M_ORDER_ID_MAX)
    private String orderId;

    @ApiModelProperty(notes = N_PAY_FUND_ORDER_ID, example = E_PAY_FUND_ORDER_ID)
    @Length(max = 32, message = M_PAY_FUND_ORDER_ID_MAX)
    private String payFundOrderId;

    @ApiModelProperty(notes = N_TRANS_AMOUNT, example = E_TRANS_AMOUNT)
    private BigDecimal transAmount;

    @ApiModelProperty(notes = N_STATUS, example = E_STATUS)
    @Length(max = 64, message = M_STATUS_MAX)
    private String status;

    @ApiModelProperty(notes = N_PAY_DATE, example = E_PAY_DATE)
    @Length(max = 20, message = M_PAY_DATE_MAX)
    private String payDate;

    @ApiModelProperty(notes = N_ARRIVAL_TIME_END, example = E_ARRIVAL_TIME_END)
    @Length(max = 20, message = M_ARRIVAL_TIME_END_MAX)
    private String arrivalTimeEnd;

    @ApiModelProperty(notes = N_ORDER_FEE, example = E_ORDER_FEE)
    @Length(max = 20, message = M_ORDER_FEE_MAX)
    private String orderFee;

    @ApiModelProperty(notes = N_ERROR_CODE, example = E_ERROR_CODE)
    @Length(max = 64, message = M_ERROR_CODE_MAX)
    private String errorCode;

    @ApiModelProperty(notes = N_FAIL_REASON, example = E_FAIL_REASON)
    @Length(max = 128, message = M_FAIL_REASON_MAX)
    private String failReason;


}

